import {ResponseType as AxiosResponse} from "axios";
import {REACT_APP_URL} from "../config/app";
export const TOKEN_NAME="token";
export const LOGIN_URI=`/user/login`;
export const LOGOUT_URL=`/user/logout`;
export const AUTH_HEADER="Access-Token";
export const LOGIN_IMAGE_CODE="/user/login/imagecode";
export const USER_INFO="user_info";
export const MENU_OPEN_KEYS="menu_open_keys";
export const LOGIN_PATH=`${REACT_APP_URL.LOGIN_SERVICE.URL}`
export const SUCCESS_CODE=200;


export const ResponseType:{
    ARRAYBUFFER:AxiosResponse,
    BLOB:AxiosResponse,
    DOCUMENT:AxiosResponse,
    JSON:AxiosResponse,
    TEXT:AxiosResponse,
    STREAM:AxiosResponse
} = {
    ARRAYBUFFER:'arraybuffer',
    BLOB:'blob',
    DOCUMENT:'document',
    JSON:"json",
    TEXT:'text',
    STREAM:'stream'
}
